package com.tcoiss.common.component.servicehelper;

import com.tcoiss.common.component.service.DispatchService;
import com.tcoiss.common.component.service.impl.DispatchServiceImpl;

public class DispatchServiceHelper {



    public static <T> T invokeBizService(String appId, String serviceName, String methodName,Object... paras) {
        Object arg8;
        try {
            DispatchService service = serviceLookup(appId);
            String factory = String.format("com.%s.%s.component.factory.InvolerHelperFactory", new Object[]{"tcoiss", "common"});
            arg8 = service.invoke(factory, serviceName, methodName, paras);
        } catch (Throwable arg17) {

            throw arg17;
        } finally {


        }

        return (T) arg8;
    }

    private static DispatchService serviceLookup(String appId) {
        DispatchService service = new DispatchServiceImpl();
        return service;
    }
}
